wayland: Use the wl_display_sync() request to track pending init roundtrips
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Mar 2013 17:38:15 +0000 (13:38 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Mar 2013 17:44:33 +0000 (13:44 -0400)
commitabfa4bf0aaf90d26f38a60272a01edcf115ffde1
tree13182daff89d991d8081dc1092f344ef3adcde9b
parentfc713dffb3c66bdf61f6c68b14c4655477b8e924
wayland: Use the wl_display_sync() request to track pending init roundtrips

Instead of maintaining the init refcount in regular event handlers that can
fire in case of hotplug or mode changes, use a dedicated sync callback
to wait for roundtrips.
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkscreen-wayland.c